﻿using GC_FFW.ForecastWriter.Abstractions.Interfaces.Helpers;
using System;

namespace GC_FFW.ForecastWriter.Helpers
{
	public class Randomizer : IRandomizer
	{
		#region Variables

		private readonly Random _rnd;

		#endregion

		#region Constructors

		public Randomizer()
		{
			_rnd = new Random((int)DateTime.Now.Ticks);
		}

		#endregion

		#region IRandomizer Members

		public int Next(int maxValue)
		{
			return _rnd.Next(maxValue);
		}

		public int Next(int minValue, int maxValue)
		{
			return _rnd.Next(minValue, maxValue);
		}

		#endregion
	}
}
